package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyzy.pojo.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    List<RolePermission> searchworkersAll(
            @Param("menuName") String menuName,
            @Param("role") String role,
            @Param("rolePermissionState") Integer rolePermissionState);

    List<RolePermission> selectRolePermissionList();

    List<RolePermission> selectRolePermissionList1();

    List<RolePermission> selectRolePermissionById(String role);
}
